# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   互联网诊疗

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.internet_diagnosis_page import InternetDiagnosisPage


class InternetDiagnosisCase(UIParent):

    @classmethod
    def test_internet_diagnosis_check(cls):
        '''互联网诊疗校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("互联网诊疗")
        authorizePage.ifAuthorize()

        status = InternetDiagnosisPage.internet_diagnosis_index()
        asserts.true(status, "互联网诊疗校验")
